package pers.mobian.springfirst.config;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import pers.mobian.springfirst.factorybean.MoBianFactoryBean;

/**
 * @Date 2021/6/27 12:23
 * @Created mobian
 * @Description
 */
public class test01 {
	public static void main(String[] args) {

		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
//		System.out.println(appConfig.getBean("user2"));
//		System.out.println(appConfig.isSingleton("user2"));
		System.out.println(context.getBean("moBian"));
		System.out.println(context.getBean("&moBian"));
	}
}
